package cn.iocoder.yudao.module.reading.controller.admin.category.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 管理后台 - 绘本分类创建 Request VO
 *
 * @author 芋道源码
 */
@Schema(description = "管理后台 - 绘本分类创建 Request VO")
@Data
public class CategoryCreateReqVO {

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "分级阅读")
    @NotBlank(message = "分类名称不能为空")
    private String name;

    @Schema(description = "图标名称", example = "icon-book")
    private String icon;

    @Schema(description = "分类描述", example = "按难度分级的英文阅读绘本")
    private String description;

    @Schema(description = "语言类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "en")
    @NotBlank(message = "语言类型不能为空")
    private String language;

    @Schema(description = "排序顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "排序顺序不能为空")
    private Integer sortOrder;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    @NotNull(message = "是否启用不能为空")
    private Boolean isActive;

}
